package com.cykj.user.domain;

import com.cykj.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
/**
 * @BelongsProject: Cykj-Order-System
 * @BelongsPackage: com.cykj.user.domain
 * @Author: 阿强
 * @CreateTime: 2025-08-20 15:01
 * @Description: TODO
 * @Version: 1.0
 */

/**封禁原因对象 ct_ban*/

/**封禁原因对象 ct_ban*/
public class CtBan
{
    private static final long serialVersionUID = 1L;

    /** 黑名单ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long customerId;

    /** 用户名字 */
    @Excel(name = "用户名字")
    private String name;

    /** 封禁原因 */
    @Excel(name = "封禁原因")
    private String reason;

    /** 封禁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "封禁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 处罚内容 */
    @Excel(name = "处罚内容")
    private String content;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }

    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("customerId", getCustomerId())
                .append("name", getName())
                .append("reason", getReason())
                .append("time", getTime())
                .append("content", getContent())
                .toString();
    }

    public void setUserId(Long userId) {
    }
}
